<template>
  <div class="app">
    <h2 class="content">这是App组件</h2>
    <p>{{count}}</p>
    <Count :count="count" :changeCount="changeCount"></Count>
  </div>
</template>


<script>
import Count from "@/components/Count";
export default {
    name:"app",
  components: {
      Count
  },
  data(){
      return{
        count:0,
      }
  },
  methods:{
    changeCount(n){
      this.count += n;
    }
  }
}
</script>
